package view.component;

import view.helper.CardHolder;

public class FreeCellComponent extends CardHolder {
	
	Integer top, left;	
	
	public FreeCellComponent() {
		setTopHolder(this);
		setDroppable("true"); 
	}
	
	public void applyRules(CardComponent card) {
		card.getTopHolder().setDroppable("false");
		card.setDroppable("false");
	}
	
	public void popTail() {		
		lastCard.setDroppable("true");
		setDroppable("true");
		lastCard = null;
	}

	public void drawAtPosition(Integer top, Integer left) {
		super.drawAtPosition(top, left);		
		this.top = top;
		this.left = left;				
	}
	
	public Integer getStep(CardComponent card) {
		return 0;
	}	
	
}
